package com.four.bergain.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.four.bergain.entity.BargainPeople;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-12-19
 */
public interface BargainPeopleMapper extends BaseMapper<BargainPeople> {

    /**
     * 查询是否帮砍过
     * @param userId
     * @param barUid
     * @return
     */
    BargainPeople getBargainById(@Param("userId") Integer userId, @Param("barUid") Integer barUid);

    /**
     * 添加 砍价商品
     * @param people
     */
    void savePeople(@Param("people") BargainPeople people);
}
